<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <defaults public="false" />

        <service id="security.authentication.listener.rememberme" class="Symfony\Component\Security\Http\Firewall\RememberMeListener" abstract="true">
            <tag name="monolog.logger" channel="security" />
            <argument type="service" id="security.untracked_token_storage" />
            <argument type="service" id="security.authentication.rememberme" />
            <argument type="service" id="security.authentication.manager" />
            <argument type="service" id="logger" on-invalid="null" />
            <argument type="service" id="event_dispatcher" on-invalid="null"/>
            <argument /> <!-- Catch exception flag set in RememberMeFactory -->
            <argument type="service" id="security.authentication.session_strategy" />
        </service>

        <service id="security.authentication.provider.rememberme" class="Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider" abstract="true">
            <argument /> <!-- User Checker -->
        </service>

        <service id="security.rememberme.token.provider.in_memory" class="Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider" />

        <service id="security.authentication.rememberme.services.abstract" abstract="true">
            <tag name="monolog.logger" channel="security" />
            <argument type="collection" /> <!--  User Providers -->
            <argument /> <!-- Shared Token Key -->
            <argument /> <!-- Shared Provider Key -->
            <argument type="collection" /> <!-- Options -->
            <argument type="service" id="logger" on-invalid="null" />
        </service>

        <service id="security.authentication.rememberme.services.persistent"
                 class="Symfony\Component\Security\Http\RememberMe\PersistentTokenBasedRememberMeServices"
                 parent="security.authentication.rememberme.services.abstract"
                 public="false"
                 abstract="true" />

        <service id="security.authentication.rememberme.services.simplehash"
                 class="Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices"
                 parent="security.authentication.rememberme.services.abstract"
                 public="false"
                 abstract="true" />

        <service id="security.rememberme.response_listener" class="Symfony\Component\Security\Http\RememberMe\ResponseListener">
            <tag name="kernel.event_subscriber" />
        </service>
    </services>
</container>
